import request from '@/utils/request'

// 获取品名信息详细信息
export function getData(data) {
  return request({
    url: 'order/orderCategory/selectFuelList',
    method: 'post',
    data,
  })
}

// 获取品名信息详细信息
export function getDatail(id) {
  return request({
    url: `order/orderCategory/${ id }`,
    method: 'get',
  })
}
// 获取品名信息详细信息
export function editData() {
  return request({
    url: 'order/orderCategory/updateSysOrderCategory',
    method: 'put',
  })
}

// 删除
export function delData(ids) {
  return request({
    url: `/order/orderCategory/${ ids }`,
    method: 'delete',
  })
}

export function PutData(data) {
  return request({
    url: '/system/safeguard/',
    method: 'put',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
    },
  })
}
// 新增
export function addData(data) {
  return request({
    url: 'order/orderCategory/insertSysOrderCategory',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
    },
  })
}

// 翻譯
export function Fanyi(params) {
  return request({
    url: 'system/baiduApi/getBaiduTrans',
    method: 'get',
    params,
  })
}

// hs图片删除
export function delOrderCategoryImg(data) {
  return request({
    url: 'prder/orderCategory/delCategoryImage',
    method: 'delete',
    data,
  })
}
